<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>结构化数据</title>
    <script lanuage="javascript">
    function check()
    {
        var test = confirm("确认删除？");
        return test;
    }
</script>
</head>
<body>
<h2>数据源的连接和管理</h2>
<hr>
<form th:action="@{/data_lake/data_source_mysql}" method="post">
    新增关系数据库信息<br>
    URL：<input type="text" name="jdbcUrl" th:value="${session.jdbcUrl}" th:disabled="${session.mysqlConn}">
    <span th:unless="${session.mysqlConn}">
        用户名：<input type="text" name="jdbcUsername">
        密码：<input type="password" name="jdbcPassword"> &nbsp;&nbsp;&nbsp;
        <input type="submit" value="测试并添加">
    </span>
    <!--<label style="color: red">[[${mysqlConnectResult}]]</label>-->
    <a th:href="@{/data_lake/remove_data_source/mysql}" th:if="${session.mysqlConn}" onclick="return check()">
        <input type="button" value="删除数据源">
    </a>
</form>
<br>
<br>
<form th:action="@{/data_lake/data_source_hbase}" method="post">
    新增HBase连接信息<br>
    集群地址：<input type="text" name="hbaseUrl" th:value="${session.hbaseUrl}" th:disabled="${session.hbaseConn}">
    <input type="submit" value="测试并添加" th:unless="${session.hbaseConn}">
    <!--<label style="color: red">[[${hbaseConnectResult}]]</label>-->
    <a th:href="@{/data_lake/remove_data_source/hbase}" th:if="${session.hbaseConn}" onclick="return check()">
        <input type="button" value="删除数据源">
    </a>
</form>
<hr>
<span>
    <a th:href="@{/data_lake}"><input type="button" value="返回首页"></a>
</span>
 &nbsp;&nbsp;&nbsp;
<span>
    <a th:href="@{/data_lake/selection_mysql}"><input type="button" value="结构化数据入湖"></a>
</span>

</body>
</html>